import ControlLayer.AddressCtr;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;

import ModelLayer.Person;
import org.junit.Test;
import ControlLayer.DVDCtr;
public class testDVD {
    ControlLayer.DVDCtr dvdctr = new DVDCtr();

    @Test
    public void testDVDCreation() {
        dvdctr.createDVD("JOHN","aaa");

        // check if multiply(10,5) returns 50

        String description = "DVD must be created";
        try{
            assertNotNull(description, dvdctr.findDVD(1));
            System.out.println(description + " - passed");
        }catch(AssertionError e){
            System.out.println(description + " - failed");

            throw e;
        }
    }

/*    @Test
    public void testUpdateDVD() {
        // TODO Update DVD
        //actr.getPerson(1).getName();

        String description = "DVD edited correctly";
        try{
            assertEquals(name, "ja");
            System.out.println(description + " - passed");
        }catch(AssertionError e){
            System.out.println(description + " - failed");

            throw e;
        }
    }*/

/*    @Test
    public void deleteDVD() {
        dvdctr.createDVD("JOHN","aaa");
        //dvdctr.deleteDVD(1);

        String description = "DVD deletion";
        try{
            assertNull(dvdctr.findDVD(1));
            System.out.println(description + " - passed");
        }catch(AssertionError e){
            System.out.println(description + " - failed");

            throw e;
        }
    }*/

    @Test
    public void testListAllDVD() {
        dvdctr.createDVD("JOHN","aaa");

        String description = "List all not null";
        try{
            assertNotNull(description, dvdctr.listAllDVDs());
            System.out.println(description + " - passed");
        }catch(AssertionError e){
            System.out.println(description + " - failed");

            throw e;
        }
    }

}